//
//  PCDApiShowBackButton.m
//  PCDBank
//
//  Created by DK on 2021/2/26.
//  Copyright © 2021 DK. All rights reserved.
//

#import "PCDApiShowBackButton.h"
#import "PCDBankWebViewController.h"

@implementation PCDApiShowBackButton

- (void)handler:(id)data andContext:(PCDContext *)context ResponseCallback:(WVJBResponseCallback )responseCallback
{
    //
    NSDictionary *tempDic = (NSDictionary *)data;
    NSString *callBack = [tempDic objectForKey:@"success"];
    
    PCDBankWebViewController *viewPage = (PCDBankWebViewController *)context.viewController;
    
    viewPage.navigationBar.hidesBackButton = NO;
    if (![PCDUtil nilOrEmptyString:callBack]) {
        //
        evaluateJavaScriptOnMainThread(self,callBack,@"");
    }
}

@end
